function disabilityAmount() {
    if (anEmployee.seniority < 2) return 0;
    if (anEmployee.monthsDisabled > 12) return 0;
    if (anEmployee.isPartTime) return 0;
    // compute the disability amount
}
/**************************************************** */
function disabilityAmount() {
    if (isNotEligibleForDisability()) {
        return 0;
    }
    // compute the disability amount
}

function isNotEligibleForDisability() {
    return anEmployee.seniority < 2 || anEmployee.monthsDisabled > 12 || anEmployee.isPartTime
}